Return to doc.sitecore.com

Valid for Sitecore 5.2, 5.1.1
  AddToPublishQueue
Prev Next

AddToPublishQueue positions the given item on the publish queue.  The method returns True if the operation was successful, False otherwise.

bool AddToPublishQueue(
  ItemDefinition item,
  string action,
  DateTime date,
  CallContext context
)

Sitecore calls the AddToPublishQueue method when an item has been created, modified, or altered in such a way that it needs to be published.  The action parameter is purely informational and is not used in practice.  The date parameter is used for filtering in subsequent calls to GetPublishQueue.


Prev Next